package com.aaa.service.front.Impl;

import com.aaa.entity.Sales;
import com.aaa.entity.SalesDetails;
import com.aaa.mapper.front.OrderMapper;
import com.aaa.service.front.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<Map<String, Object>> findSales() {
        return orderMapper.findSales();
    }

    @Override
    public int addSales(Sales sales) {
        return orderMapper.addSales(sales);
    }

    @Override
    public int addSalesDetails(SalesDetails salesDetails) {
        return orderMapper.addSalesDetails(salesDetails);
    }

    @Override
    public int editOrderState(Sales sales) {
        return orderMapper.editOrderState(sales);
    }

    @Override
    public int delShoppingCartDetail(int shoppingCartId) {
        return orderMapper.delShoppingCartDetail(shoppingCartId);
    }

}
